﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="MantenimientoPeriodo.aspx.vb" Inherits="Devida_MantenimientoPeriodo" Theme="Yahoo-Ocean" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   <base target="_self" />
<link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
   <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
   <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />
    
    <script language="javascript" src="../Script/PrintScript.js" type="text/javascript"> </script>
    <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>
    <script src="../js/js_windowpopup.js" type="text/javascript"></script>
     <script language="javascript" type="text/javascript">
         function AcceptNum(evt) {
             var nav4 = window.Event ? true : false;
             var key = nav4 ? evt.which : evt.keyCode;
             return (key <= 13 || key == 46 || (key >= 48 && key <= 57) || key == 44);
         }        
    </script>
    
   
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
<asp:Label ID="lblCabecera" runat="server" font-names="arial" Font-Size="17px" ForeColor="white" font-bold="true" text="Mantenimiento Periodo">
</asp:Label>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table cellpadding="0" cellspacing="0" width="900px" >
<tr>
<td style="TEXT-ALIGN:left; padding-left: 10px; padding-top: 3px;  font-size: 12px;
            font-weight: bolder;  font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#199A44; ">
<asp:Label ID="labelusuario" runat="server" Text="Datos " Font-Bold="True" Width="900px"></asp:Label>

</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="900px">


<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
            <td align="left">
            
                <asp:Label id="label7" runat="server" CssClass="label" Text="Tipo Periodo" > </asp:Label>
                
            </td>
            <td align="left" >
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
            <asp:TextBox ID="txtTP" runat="server" cssclass="frm_formato_caja" ></asp:TextBox>
               </ContentTemplate>
                 <Triggers>
     <asp:AsyncPostBackTrigger ControlID="gv_periodo" EventName="SelectedIndexChanged" />
      </Triggers>
                 </asp:UpdatePanel>
            </td>
            <td align="left">
            
                <asp:Label id="label4" runat="server" CssClass="label" Text="Codigo" > </asp:Label>
           
</td>
<td align="left" >
            <asp:UpdatePanel ID="UpdatePanel6" runat="server">
                                        <ContentTemplate>
            <asp:TextBox ID="txtcodigo" runat="server" cssclass="frm_formato_caja"  Width="50px" ></asp:TextBox>
               </ContentTemplate>
                 <Triggers>
     <asp:AsyncPostBackTrigger ControlID="gv_periodo" EventName="SelectedIndexChanged" />
      </Triggers>
                 </asp:UpdatePanel>
            </td>
             <td >
             <asp:Label ID="lblmes" runat="server" CssClass="label" text="Periodo"></asp:Label>
             </td>
             <td>
                 <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                     <ContentTemplate>
                         <asp:TextBox ID="txtperiodo" runat="server" CssClass="frm_formato_caja" Width="150px"></asp:TextBox>
                     </ContentTemplate>
                     <Triggers>
                         <asp:AsyncPostBackTrigger ControlID="gv_periodo" EventName="SelectedIndexChanged" />
                     </Triggers>
                 </asp:UpdatePanel>
             </td>
             <td>
<asp:UpdatePanel ID="UpdatePanel5" runat="server">
                                        <ContentTemplate>
<asp:Label id="label2" runat="server" CssClass="label" Text="Año" > </asp:Label>
            <asp:TextBox ID="txt_anhio" runat="server" cssclass="frm_formato_caja" Width="70px"></asp:TextBox>
<asp:Label id="label3" runat="server" CssClass="label" Text="Mes" > </asp:Label>
<asp:DropDownList ID="ddl_mes" runat="server" CssClass="ddl" ></asp:DropDownList>
</ContentTemplate>
                 <Triggers>
     <asp:AsyncPostBackTrigger ControlID="gv_periodo" EventName="SelectedIndexChanged" />
      </Triggers>
                 </asp:UpdatePanel>
</td>
             <td align="right">
             <asp:Label ID="lbltp" runat="server" CssClass="label" Text="Estado"></asp:Label>
             </td>
             <td align="right">
             <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                        <ContentTemplate>
             <asp:DropDownList ID="ddlestado" runat="server" CssClass="ddl" ></asp:DropDownList>
             </ContentTemplate>
                 <Triggers>
     <asp:AsyncPostBackTrigger ControlID="gv_periodo" EventName="SelectedIndexChanged" />
      </Triggers>
                 </asp:UpdatePanel>
             </td>
       <tr>

<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
 <td align="right" >
                <asp:Label ID="lbl_nuevo" runat="server"  CssClass="label" Text="Nuevo"></asp:Label>
            </td>
 <td >
 <asp:UpdatePanel ID="UpdatePanel7" runat="server">
                                        <ContentTemplate>
                <asp:CheckBox ID="chkb" runat="server" CssClass="chk" AutoPostBack="true"   />
                </ContentTemplate>
                </asp:UpdatePanel>

            </td>     
</tr>      


        </tr>




</table>
<table cellpadding="0" cellspacing="0" width="900px">
<tr >
<td colspan="6" style="TEXT-ALIGN:left; padding-left: 10px; padding-top: 3px;  font-size: 12px;
            font-weight: bolder;  font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#199A44; ">
<asp:Label ID="label1" runat="server" Text="Lista de Periodos" Font-Bold="True" Width="900px"></asp:Label>
</td>
</tr>

</table>
<table cellpadding="0" cellspacing="0" width="900px">
<tr>
<td>
<div style="border: solid 1px #99aabd; width: 900px; height: 300px; overflow: auto;"align="center">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>

         <asp:GridView ID="gv_periodo" runat="server" AutoGenerateColumns="False" 
            CellPadding="0" CssClass="grid" Font-Size="8pt" GridLines="None" Width="900px">
            <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" />
            <Columns>               
             
                <asp:TemplateField ItemStyle-Width ="5px" >
	               <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                 <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
	                  <HeaderTemplate>N° </HeaderTemplate>                                     
                                     <ItemTemplate> <%# Container.DataItemIndex + 1 %>
                     
	                                    <asp:HiddenField ID="hfPERIODO" runat="server" Value='<%# Eval("PERIODO") %>'  />
                                         <asp:HiddenField ID="hfaño" runat="server" Value='<%# Eval("ANHIO") %>'  />
                                          <asp:HiddenField ID="hfmes" runat="server" Value='<%# Eval("MES") %>'  />
                                           <asp:HiddenField ID="hftp" runat="server" Value='<%# Eval("TIPO_PERIODO") %>'  />
                                            <asp:HiddenField ID="hfestado" runat="server" Value='<%# Eval("ESTADO") %>'  />
                                            <asp:HiddenField ID="hfCodEstado" runat="server" Value='<%# Eval("COD_ESTADO") %>'  /> 
                                            <asp:HiddenField ID="hfCodMES" runat="server" Value='<%# Eval("COD_MES") %>'  /> 
                                                                                                              
	                                     </ItemTemplate> 
	             </asp:TemplateField>
                 <asp:BoundField DataField="TIPO_PERIODO" HeaderText="TIPO PERIODO" ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top" />
                 <asp:BoundField DataField="PERIODO" HeaderText="CODIGO" ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top"  />
                <asp:BoundField DataField="DESCRIPCION" HeaderText="PERIODO" ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top"  />
                <asp:BoundField DataField="ANHIO" HeaderText="AÑO" ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top"  />
                <asp:BoundField DataField="MES" HeaderText="MES" ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top"  />
                <asp:BoundField DataField="ESTADO" HeaderText="ESTADO" ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top"  />
                </Columns>
            <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />
            <AlternatingRowStyle BackColor="#CEDAF2" ForeColor="#003366" />
            <PagerStyle BackColor="#336699" Font-Bold="True" Font-Names="Verdana" 
                Font-Size="10px" ForeColor="White" HorizontalAlign="left" Wrap="False" />
        </asp:GridView>
</ContentTemplate>
    <Triggers>
     <asp:AsyncPostBackTrigger ControlID="gv_periodo" EventName="SelectedIndexChanged" />
      </Triggers>
    </asp:UpdatePanel>
         </div>
</td>
</tr>
</table>
<table>
<tr>                    
         <td colspan="6">
                  <div  style= "width: 900px;height: 40px;  overflow: auto;" align="center">
                  <table width="900px">
            <tr>
                        
                        <td align="left" class="style66" >
                               <asp:ImageButton ID="btn_guardar" runat="server" ImageUrl="~/Imagenes/btnGuardar.png" style="height: 23px" />
                            </td>
                        <td align="left">
                        <asp:imageButton ID="btn_eliminar" runat="server" imageURL="~/Imagenes/btnEliminar.png" />
                        </td>
                        
                        <td align="right">                                
                        <asp:ImageButton ID="btnsalir" runat="server"  ImageUrl="~/Imagenes/btnSalir.png" />
                        </td>
                    </tr>
                    </table>
            </div> 
            
            </td>
                    
       </tr>
</table>
<uc1:Alerta id="alerta" runat="server"></uc1:Alerta>
</asp:Content>

